var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var haveHelpModel = require('../../app/models/haveHelpModel.js');
var config = require('../config');

suite('测试haveHelpModel', function () {
    //var help_model;
    //setup(function(done) {
    //haveHelpModel.getById(12743, 555555555, function(err, model) {
    //assert.equal(err == null, true);
    //console.log('msg:', model);
    //done();
    //});
    //});

    //suite('haveHelpModel', function() {
    //test('创建', function(done) {
    //haveHelpModel.createHelp(12743, 555555555, done);
    //});
    //});

    //suite('haveHelpModel', function() {
    //test('创建', function(done) {
    //haveHelpModel.createHelp(12743, 44444444, done);
    //});
    //});

    suite('haveHelpModel', function () {
        test('查找', function (done) {
            var list = {
                role_id: 12743,
                only_id: 555555555
            };
            haveHelpModel.findUnionHelpList(12743, function (err, list) {
                console.log('list:', list);
                done();
            });
        });
    });

    // suite('checkAlreadyHelp', function () {
    //     test('判断是否帮助过该队列', function (done) {
    //         var role_id = 12986;
    //         var require_role_id = 12987;
    //         var help_type = 1;
    //         var share_id = 21201;
    //         haveHelpModel.checkAlreadyHelp(role_id, require_role_id, help_type, share_id, function (err, already) {
    //             console.log('already:', already);
    //             done();
    //         });
    //     });
    // });
});
